﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace moveErrorFile.classes
{
    class clsOrderConfigHeader
    {
        public clsOrderConfigHeader()
        {
            this.sStorer = null;
            this.orderConfigLines = new List<clsOrderConfigLine>();
        }

        private string sStorer;

        public string SStorer
        {
            get { return this.sStorer; }
            set { this.sStorer = value; }
        }

        private List<clsOrderConfigLine> orderConfigLines;

        public List<clsOrderConfigLine> clsOrderConfigLines
        {
            get { return this.orderConfigLines; }
            set { this.orderConfigLines = value; }
        }

        public void addOrderConfigLine(clsOrderConfigLine line)
        {
            this.orderConfigLines.Add(line);
        }

        public int getNoOfConfigLine()
        {
            return this.orderConfigLines.Count();
        }

        public List<clsOrderConfigLine> getOrderConfigLineList()
        {
            return this.orderConfigLines;
        }

        public clsOrderConfigLine getOrderConfigLineByID(int id)
        {
            if(id > getNoOfConfigLine())
            {
                return null;
            }

            return this.orderConfigLines[id];
        }

        private string sEmailListTo;

        public string SEmailListTo
        {
            get { return this.sEmailListTo; }
            set { this.sEmailListTo = value; }
        }

        private string sEmailListCC;

        public string SEmailListCC
        {
            get { return this.sEmailListCC; }
            set { this.sEmailListCC = value; }
        }

    }
}
